import { $get } from '@js/request'
import { CaseSchema } from '@src/components/schema/caseSchema'
import { ScoreTotalSchema } from '@src/components/schema/scoreSchema'

// 获取案件分数
export async function getScoreRequest (caseid: string): Promise<ScoreTotalSchema> {
  const res = await $get('/api/commission/case_score', { caseid })
  return res.data
}

// 获取案件详情
export async function getCaseDetailRequest (caseid: string): Promise<CaseSchema> {
  const res = await $get(`/api/commission/case/${caseid}`)
  return res.data
}
